// addon to jQuery validate to handle international telephone numbers

$.validator.addMethod('phone', function(value) {
  var numbers = value.split(/\d/).length - 1;
  return (10 <= numbers && numbers <= 20 && value.match(/^(\+){0,1}(\d|\s|\(|\)){10,20}$/)); 
  }, 'Please enter a valid phone number'
);